#include "MouseButtonEventArgs.h"

namespace input {

	MouseButtonEventArgs::MouseButtonEventArgs( const Mouse& mouse, const Keyboard& keyboard, MouseButton button ) :
		MouseEventArgs( mouse, keyboard ),
		m_button( button )
	{}

	MouseButtonEventArgs::MouseButtonEventArgs( const MouseButtonEventArgs& other ) :
		MouseEventArgs( other ),
		m_button( other.m_button )
	{}

	MouseButtonEventArgs::~MouseButtonEventArgs() {}

	MouseButtonEventArgs& MouseButtonEventArgs::operator=( const MouseButtonEventArgs& other ) {
		if( this == &other ) return *this;

		MouseEventArgs::operator= (other);
		m_button = other.GetButton();

		return *this;
	}
}
